package com.xxgc.vfc.common.error.center;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: SJY
 * @Date: 2023/11/14 10:36:37
 * 所有自定义异常的父类
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BaseRuntimeException extends RuntimeException{
    //错误信息
    protected String errorMessage;

    //和参数一样名字方法
    public BaseRuntimeException errorMessage(String errorMessage){
        this.errorMessage = errorMessage;
        return this;
    }

}
